class CreateOrderItems < ActiveRecord::Migration
  def self.up
    create_table :order_items do |t|
      t.integer :furniture_id,
        :order_id
      t.integer :ordered_count,
        :has_been_sent_to_installer_count,
        :installed_count,
        :after_serviced_count,
        :order_made_count,
        :default => 0
      t.integer :feed_id
      t.text :remark
      t.string :type
      t.timestamps
    end
  end

  def self.down
    drop_table :order_items
  end
end
